
package com.zmks.jkgj.xuexiao.tools;
import java.io.UnsupportedEncodingException;


import org.tempuri.WmgwLocator;

/**
 * @author 短信发送
 * 
 */
public class WebService {

	
	
	public static void sendmsg(String msg,String pszMobis)
	{
		
		WmgwLocator wmgwLocator = new WmgwLocator();
		
		String userId = "JC2426";
		String password = "550006";
	    //号码个数
		Integer iMobiCount = pszMobis.split(",").length;
		System.out.println("打印个数"+iMobiCount);
		System.out.print("手机号："+pszMobis+"信息:"+msg);
//		try {
//			
//			wmgwLocator.getwmgwSoap().mongateCsSendSmsEx(userId,password, pszMobis, msg,iMobiCount );
//		} catch (NumberFormatException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (RemoteException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (ServiceException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}
	
	public static void main(String[] args) throws UnsupportedEncodingException {
		String msg = "江亚宁发送测试短信@！@##￥#￥￥%%#￥#%…………&…………&……&￥%@#！";
		String pszMobis = "15010000470";
		sendmsg(msg,pszMobis);
	}
	
	}
